import "./App.css"
import React, {useState} from "react"

function App() {
  const [a, setA] = useState(0)
  const increment = () => setA(a => a + 1)
  const decrement = () => setA(a => a - 1)
  return (
    <div className="App">
      <p>{a}</p>
      <button onClick={increment}>+1</button>
      <button onClick={decrement}>-1</button>
    </div>
  )
}

export default App
